/* NetworkManage 主容器样式 */
.network-manage-container {
  padding: 24px;
  background: #f5f5f5;
  min-height: 100vh;
  position: relative;
}

.network-manage-content {
  max-width: 900px;
  margin: 0 auto;
}

/* 页面头部样式 */
.manage-page-header {
  margin-bottom: 24px;
}

.back-link {
  position: fixed;
  top: 70px;
  left: 24px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  background: white;
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  border: 1px solid #e8e8e8;
}

.back-link:hover {
  color: #1890ff;
  background: #f0f8ff;
  border-color: #1890ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.2);
}

.back-link .anticon {
  margin-right: 5px;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-info h2 {
  margin: 0;
  color: #333;
}

.header-info .subtitle {
  color: #666;
  margin-top: 4px;
}

.refresh-btn {
  border: none;
  box-shadow: none;
}

/* 管理员权限提示 */
.admin-alert {
  margin-bottom: 24px;
}

/* 管理标签页样式 */
.manage-tabs {
  background: white;
  border-radius: 8px;
  margin-bottom: 24px;
}

.manage-tabs .ant-tabs-nav {
  margin: 0;
  padding: 0 24px;
}

.manage-tabs .ant-tabs-content-holder {
  padding: 0 24px 24px;
}

/* 表单部分样式 */
.form-section {
  margin-bottom: 32px;
}

.form-section:last-child {
  margin-bottom: 20px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.section-divider {
  margin: 12px 0 24px 0;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.submit-btn {
  min-width: 120px;
  border-radius: 6px;
}

.reset-btn {
  border-radius: 6px;
}

/* 规则配置样式 */
.rules-alert {
  margin-bottom: 24px;
}

.rules-status {
  margin-bottom: 24px;
}

.rules-status h5 {
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

/* 网络概览样式 */
.network-overview {
  background: white;
  border-radius: 8px;
}

.overview-title {
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* 加载和错误状态样式 */
.manage-loading-view,
.manage-error-view {
  padding: 24px;
  background: #f5f5f5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.manage-loading-content,
.manage-error-content {
  text-align: center;
  background: white;
  padding: 60px 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.manage-loading-text,
.manage-error-text {
  margin-top: 16px;
  color: #666;
}

.manage-error-message {
  color: #f5222d;
  margin-bottom: 20px;
  font-size: 16px;
}

.manage-back-button {
  margin-top: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .network-manage-container {
    padding: 16px;
  }
  
  .network-manage-content {
    padding-top: 70px; /* 移动端增加更多顶部空间 */
  }
  
  .back-link {
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .header-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .refresh-btn {
    width: 100%;
  }
  
  .manage-tabs .ant-tabs-content-holder {
    padding: 0 16px 16px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .submit-btn,
  .reset-btn {
    width: 100%;
  }
}